﻿#include"RBTree.h"
#include"myset.h"
#include"mymap.h"
#include<string>
using namespace std;
int main()
{
	myset<int> s;
	int a[] = { 4, 2, 6, 1, 3, 5, 15, 7, 16, 14 };
	for (auto e : a)
	{
		s.insert(e);
	}
	myset<int>::const_iterator it = s.begin();
	while (it != s.end())
	{
		// 不⽀持修改
		//*it += 2;
		cout << *it << " ";
		++it;
	}
	cout << endl;
	return 0;
}